package com.ljh.blog.service;

import com.ljh.blog.pojo.dataobject.BlogInfo;
import com.ljh.blog.pojo.request.AddBlogRequest;
import com.ljh.blog.pojo.request.UpdateBlogRequest;
import com.ljh.blog.pojo.response.BlogInfoResponse;

import java.util.List;

public interface BlogService {
    List<BlogInfoResponse> getList();

    BlogInfoResponse getBlogDetails(Integer blogId);

    BlogInfo getBlogInfo(Integer blogId);

    Boolean postBlog(AddBlogRequest blog);

    Boolean deleteBlog(Integer blogId);

    Boolean updateBlog(UpdateBlogRequest updateBlogRequest);
}
